<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../node_modules/react/umd/react.development.js"></script>
    <script src="../node_modules/react-dom/umd/react-dom.development.js"></script>
    <script src="../node_modules/babel-standalone/babel.min.js"></script>
</head>

<body>
    <div id="root"></div>
    <script type="text/babel">

        function Son() {
            return <h1>劳资是儿子</h1>
        }

        function Daughter() {
            return <h2>老娘是女儿</h2>
        }

        function Doggy() {
            return <h3>同样是吃狗粮，为什么主人感到不幸福呢？</h3>
        }

        function Daddy() {
            return (
                <div>
                    <Son />
                    <Daughter />
                    <Doggy />
                </div>
            )
        }

        ReactDOM.render(<Daddy />, document.querySelector("#root"))
    </script>
</body>

</html>